package com.net.dao;

/*
 **@Author:邓少勋
 **Created on 2020/10/11
 */
public class UserDao {
    //验证登录信息的合法性
    public boolean isValid(String userName,String userPwd){
//连接数据库，从架包1里找Dirver加载进来
        try{
            //创建数据库的连接对象
            Class.forName("com.mysql.cj.jdbc.Driver");
            String user="first_meet";
            String pwd="123456";
            String url="jdbc:mysql://localhost:3306/stumanager?serverTimezone=UTC";
            Connection con =DriverManager.getConnection(url,user,pwd);
            //2.准备 需要
            String sql ="select * from user where name='"+userName+"' and password='"+userPwd+"'";
            PreparedStatement ps=con.prepareStatement(sql);
        }catch(Exception e){
        }finally{}

    }
    //插入用户信息
    //修改用户信息
    //删除用户信息
    //查询用户信息
}
